﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Classes
{
    class Booking
    {
        Connection connetionObj;
        Reservation reservationObj;

        public Booking(Connection connection) {

            this.connetionObj = connection;
                             
        }
        //creates reservation obj with personl data;
        private void createReservation(string fname, string lname, string address, string country, string phone, string email, string passport)
        {
            
            reservationObj = new Reservation(fname, lname, address, country, phone, email, passport);
        
        }

        //checks if there is enough seats left on all flights in connection
        private bool check() {
           

            return true;
        }

        //books tickets
        private void book()
        {
            if (check()) //performs check
            { 
                
            }

        }
    }
}
